Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use communication channel to notify about the websocket closed #131

Merged
merged 2 commits into from
Sep 28, 2021

Conversation

msarvar
Copy link

@msarvar msarvar commented Sep 28, 2021

This is a workaround the blocking async execution. At the moment, when we run a terraform show on a particularly big plan output, bufio will block the execution in Scan phase. This is due to Scan reading one newline at a time but also having a buffer limit of 64kb. So when a single line is bigger than the buffer it will hang. Since this is only happens with terraform show, we will just move our isAsyncEligibleCommand check before we execute the async function.

Copy link

@Aayyush Aayyush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@msarvar msarvar merged commit 8c9fea7 into release-v0.17.1-lyft.1 Sep 28, 2021
@msarvar msarvar deleted the fix-log-streaming branch September 28, 2021 17:57
msarvar added a commit that referenced this pull request Oct 18, 2021
* So for whatever reason tf show with big plan doesn't work in async

* rename isValidCommand to isAsyncEligibleCommand
Aayyush pushed a commit that referenced this pull request Dec 9, 2021
* So for whatever reason tf show with big plan doesn't work in async

* rename isValidCommand to isAsyncEligibleCommand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants